module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;
  const RoleSchema = new Schema({
    name: {
      type: String,
      require: true // 必填项
    },
    username: {
      type: String,
      require: true // 必填项
    },
    gender: {
      type: String,
      require: true // 必填项
    },
    jobtitle: {
      type: String,
      require: true
    },
  });
  return mongoose.model("Member", RoleSchema, "member");
};
